package com.zy.multiredis.config;

import java.util.Map;

import org.springframework.data.redis.core.RedisTemplate;

public class MultiRedisTemplateMap {

    private Map<String, RedisTemplate> redisTemplates;

    public MultiRedisTemplateMap(Map<String, RedisTemplate> redisTemplates) {
        this.redisTemplates = redisTemplates;
    }
    
    public RedisTemplate getRedisTemplate(String key) {
        return redisTemplates.get(key);
    }

    public Map<String, RedisTemplate> getRedisTemplates() {
        return redisTemplates;
    }

    public void setRedisTemplates(Map<String, RedisTemplate> redisTemplates) {
        this.redisTemplates = redisTemplates;
    }
}
